package com.cw.mapper;

import com.cw.entity.Bill;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author cw
 * @since 2021/7/14 23:47
 * @deprecated
 */
@Component
public interface BillMapper {
    int getBillCountByProviderId(@Param("providerId") int providerId);

    List<Bill> getBillList(@Param("productName") String productName,
                           @Param("providerId") int providerId,
                           @Param("isPayment") int isPayment
    );


    Bill getBillById(@Param("id") int id);

    int modifyBillById(Bill bill);

    int deleteBillById(@Param("id") int id);

    int addBill(Bill bill);

}
